/* ─────────────────────────────────────────────────────
   Scituate Maritime Center — style.css
   Palette: Navy #1A2744 · Teal #1D7A8A · Gold #C19B3F
            Cream #FAFBFD · Light-teal bg #EBF5F8
   ───────────────────────────────────────────────────── */

:root {
  --navy:      #1A2744;
  --navy-dark: #0D1A30;
  --teal:      #1D7A8A;
  --teal-light:#25909F;
  --gold:      #C19B3F;
  --gold-light:#D4AE58;
  --cream:     #FAFBFD;
  --bg-teal:   #EBF5F8;
  --text:      #1A2332;
  --text-muted:#5A6A7A;
  --radius:    12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }

/* ─── NAVBAR ─────────────────────────────────────────── */
.smc-nav {
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s;
  padding: 1.1rem 0;
}

.smc-nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  padding: 0.6rem 0;
}

.smc-nav .navbar-brand {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.smc-nav .navbar-brand:hover { color: var(--gold-light); }

.brand-anchor {
  margin-right: 0.4em;
  font-size: 1rem;
  opacity: 0.85;
}

.smc-nav .nav-link {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.8rem;
  transition: color 0.2s;
}

.smc-nav .nav-link:hover { color: var(--gold-light); }

.smc-nav .nav-cta {
  background: var(--teal);
  color: #fff !important;
  border-radius: 6px;
  padding: 0.4rem 1.1rem;
  margin-left: 0.5rem;
  transition: background 0.2s;
}

.smc-nav .nav-cta:hover { background: var(--teal-light); }

.smc-nav .navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}
.smc-nav .navbar-toggler-icon {
  filter: invert(1);
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('img/smc_312.jpg') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 26, 48, 0.52) 0%,
    rgba(13, 26, 48, 0.38) 50%,
    rgba(13, 26, 48, 0.62) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 1rem 4rem;
}

.hero-eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.btn-hero-primary {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}
.btn-hero-primary:hover {
  background: var(--teal-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint a {
  color: rgba(255,255,255,0.65);
  font-size: 1.8rem;
  animation: bounce 2s infinite;
  display: block;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ─── SHARED SECTION STYLES ──────────────────────────── */
.section-tag {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.section-tag.text-teal { color: var(--teal); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title.dark { color: var(--navy); }

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ─── ABOUT ──────────────────────────────────────────── */
.smc-about {
  padding: 6rem 0;
  background: var(--cream);
}

.about-img {
  width: 100%;
  object-fit: cover;
  max-height: 480px;
  box-shadow: 0 12px 40px rgba(26,39,68,0.15);
}

.stats-row { margin-top: 1.5rem; }

.stat-card {
  background: #fff;
  border: 1px solid rgba(29,122,138,0.15);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-unit {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: middle;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ─── VENUE ──────────────────────────────────────────── */
.smc-venue {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.venue-img-bg {
  position: absolute;
  inset: 0;
  background: url('img/smc_img_0609.jpg') center center / cover no-repeat;
}

.venue-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,39,68,0.25) 0%, rgba(26,39,68,0.08) 100%);
}

.venue-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.8rem 2.6rem;
  box-shadow: 0 20px 60px rgba(13,26,48,0.2);
  position: relative;
  z-index: 2;
  border-top: 4px solid var(--teal);
}

.venue-features {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.venue-features li {
  padding: 0.45rem 0;
  font-size: 0.97rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.venue-features li:last-child { border-bottom: none; }

.venue-features .bi-check-circle-fill { color: var(--teal); font-size: 1rem; flex-shrink: 0; }

.btn-teal {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-teal:hover { background: var(--teal-light); color: #fff; }

/* ─── MARINA ─────────────────────────────────────────── */
.smc-marina {
  padding: 6rem 0;
  background: #fff;
}

.marina-grid .col-md-4 { display: flex; }

.marina-tile {
  flex: 1;
  background: var(--cream);
  border: 1px solid rgba(29,122,138,0.12);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.marina-tile:hover {
  box-shadow: 0 8px 32px rgba(29,122,138,0.15);
  transform: translateY(-4px);
}

.marina-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.marina-tile h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.marina-tile p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.marina-contact-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 1.2rem 2rem;
  font-size: 0.93rem;
  gap: 0.5rem 2rem;
}

.marina-contact-bar a { color: var(--gold-light); text-decoration: none; }
.marina-contact-bar a:hover { text-decoration: underline; }

/* ─── PROGRAMS ───────────────────────────────────────── */
.smc-programs {
  padding: 6rem 0;
  background: var(--bg-teal);
}

.program-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.program-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.4rem;
}

.program-card h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.program-card p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.btn-program {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  padding: 0.6rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.btn-program:hover { background: var(--teal); color: #fff; }

/* ─── GALLERY ────────────────────────────────────────── */
.smc-gallery {
  background: var(--navy);
  padding-bottom: 0;
}

.smc-gallery .section-tag { color: var(--gold-light); }
.smc-gallery .section-title { color: #fff; }
.smc-gallery .text-center { padding-bottom: 1rem; }

.gallery-group-label {
  padding: 1.2rem 0 0.5rem;
}

.gallery-group-label span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 0 4px;
}

.gallery-grid {
  display: grid;
  gap: 4px;
}

.gallery-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px;
}

.gallery-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-cell:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,26,48,0.78));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1.5rem 1rem 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-cell:hover .gallery-caption { opacity: 1; }

@media (max-width: 768px) {
  .gallery-grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 200px);
  }
}

@media (max-width: 480px) {
  .gallery-grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 160px);
  }
}

/* ─── RESERVE ────────────────────────────────────────── */
.smc-reserve {
  padding: 6rem 0;
  background: var(--cream);
}

.rate-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  border: 1px solid rgba(0,0,0,0.07);
  height: 100%;
}

.rate-header {
  padding: 1.8rem 2rem;
  color: #fff;
}

.rate-header.resident { background: var(--teal); }
.rate-header.nonresident { background: var(--navy); }

.rate-header h5 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #fff;
}

.rate-header p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

.rate-body {
  background: #fff;
  padding: 2rem;
}

.rate-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.rate-price span {
  font-size: 0.9rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
}

.rate-deposit {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.rate-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.8rem;
}

.rate-features li {
  padding: 0.4rem 0;
  font-size: 0.93rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.rate-features li:last-child { border: none; }
.rate-features .bi-check2 { color: var(--teal); font-weight: 900; }

.btn-reserve {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.btn-reserve:hover { background: var(--teal); color: #fff; }

.reserve-policies {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.policy-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.policy-item .bi {
  font-size: 1.5rem;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.policy-item strong { display: block; color: var(--navy); margin-bottom: 0.3rem; }
.policy-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.reserve-contact {
  font-size: 0.97rem;
  color: var(--text-muted);
}
.reserve-contact a { color: var(--teal); font-weight: 700; text-decoration: none; }
.reserve-contact a:hover { text-decoration: underline; }

/* ─── CONTACT ────────────────────────────────────────── */
.smc-contact {
  padding: 6rem 0;
  background: #fff;
}

.contact-block {
  margin-bottom: 1.8rem;
}

.contact-block h5 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.contact-block p {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

.contact-block a { color: var(--teal); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

.map-wrapper {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.07);
}

/* ─── FOOTER ─────────────────────────────────────────── */
.smc-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 0;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-anchor { font-size: 1.3rem; }

.footer-addr {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255,255,255,0.55);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  margin: 0 2px;
}
.footer-social a:hover { background: var(--teal); color: #fff; }

.wicked-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
  transition: background 0.2s, border-color 0.2s;
}
.wicked-badge:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); }

.wicked-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
}

.wicked-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.wicked-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
  padding: 1.2rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 991px) {
  .smc-nav .navbar-collapse {
    background: var(--navy);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 1rem 1.2rem;
    margin-top: 0.5rem;
  }
  .smc-nav .nav-cta { margin-left: 0; margin-top: 0.5rem; display: inline-block; }
  .smc-nav .navbar-brand { font-size: 1.05rem; }
}

@media (max-width: 767px) {
  .smc-about, .smc-marina, .smc-programs, .smc-reserve, .smc-contact { padding: 4rem 0; }
  .smc-venue { padding: 4rem 0; }
  .venue-card { padding: 2rem 1.5rem; }
  .hero-title { font-size: 2.2rem; }
  .rate-card { margin-bottom: 0; }
  .marina-contact-bar { padding: 1rem 1.2rem; font-size: 0.85rem; }
  .wicked-badge { align-items: flex-start; text-align: left; }
  .smc-footer .col-md-4.text-md-end { text-align: left !important; }
  .reserve-policies { padding: 1.2rem; }
  .policy-item { flex-direction: column; gap: 0.5rem; }
  .policy-item .bi { margin-top: 0; }
}

@media (max-width: 575px) {
  .hero-sub { font-size: 1rem; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; max-width: 280px; }
  .stat-num { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
}
